package com.family.pedigree.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 个人收入表
 * </p>
 *
 * @author forever
 * @since 2025-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("family_user_income")
public class FamilyUserIncome implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户信息id
     */
    @NotNull(message = "用户信息不能为空")
    private Long infoId;

    /**
     * 年收入
     */
    @NotNull(message = "年收入不能为空")
    private BigDecimal annualIncome;

    /**
     * 年份
     */
    @NotNull(message = "年份不能为空")
    private LocalDate particularYear;


}
